<% include ../common/header.html %>

<div class="eux-register">
    <div class="row">
        <div class="container">
            <form class="form-horizontal" action="/user/reg" method="post">
                <div class="form-group">
                    <label for="userno" class="col-sm-2 control-label">学号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" maxlength="20" name="userno" required id="userno" placeholder="输入学号">
                    </div>
                </div>
                <div class="form-group">
                    <label for="department" class="col-sm-2 control-label">部门</label>
                    <div class="col-sm-10">
                        <select name="department" id="department" class="form-control">
                            <option value="0">EUX</option>
                            <option value="1">前端美工组</option>
                            <option value="2">后台Web组</option>
                            <option value="3">后台App组</option>
                            <option value="4">影视部</option>
                            <option value="5">市场部</option>
                            <option value="6">新闻部</option>
                            <option value="7">新媒体部</option>
                            <option value="8">产品部</option>
                            <option value="9">公关部</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="position" class="col-sm-2 control-label">职位</label>
                    <div class="col-sm-10">
                        <select name="position" id="position" class="form-control">
                            <% if(user.position == 0) { %><option value="1">CEO</option> <% } %>
                            <% if(user.position < 2) { %><option value="2">总监</option> <% } %>
                            <% if(user.position < 4) { %><option value="4">主管</option> <% } %>
                            <option value="6" selected>员工</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="note" class="col-sm-2 control-label">备注</label>
                    <div class="col-sm-10">
                        <textarea id="note" name="note" maxlength="200" class="form-control" rows="3"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" class="btn btn-primary" value="录入">
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>


<% include ../common/footer.html %>
